@import '../../../css/colorVar.less';

.cardList {
  display: flex;
  flex-wrap: wrap;
}

.CardInfo {
  margin-bottom: 20px;
  & > div {
    height: 230px !important;
    & > div:first-child {
      height: 47px !important;
      & > div {
        padding: 0 !important;
        padding-left: 16px !important;
      }
    }
  }
  //:global {
  //  .card-wrap {
  //    min-height: 230px !important;
  //  }
  //
  //  .card-head {
  //    height: 47px !important;
  //  }
  //
  //  .card-head-top {
  //    padding: 0 20px !important;
  //  }
  //}

  :hover {
    .topHtml {
      .topIcon {
        display: inline-block;
      }
    }
  }

  .topHtml {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 600;
    color: @barfont_color;

    .title {
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      max-width: 80%;
    }

    .topIcon {
      display: none;
    }
  }

  .btnGroup {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid @border_color;

    .imgBtn:first-child {
      border-right: 1px solid @border_color;
    }

    .imgBtn {
      display: flex;
      justify-content: center;
      width: 50%;
      height: 32px;
      color: @table_nodata_text;

      div {
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
          margin-right: 8px;
        }
      }
    }
  }

  .involvedPages {
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 600;
    margin-top: 17px;

    .labelList {
      display: flex;
      flex-wrap: wrap;
      margin-left: 4px;

      .label {
        background: @cardC_head_border;
        border-radius: 2px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: @text_a_Tag;
        line-height: 16px;
        padding: 1px 4px;
        margin-right: 16px;
        display: inline;
        cursor: pointer;
        margin-bottom: 10px;
      }
    }
  }

  .launchDate {
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 600;
    margin-top: 7px;
    display: flex;

    .time {
      margin-left: 4px;
      color: @table_body_text;
      font-weight: 400;
    }
  }
}

@media screen and (max-width: 1920px) {
  //小于1920
  .cardList {
    .CardInfo {
      width: ~'calc((100% - 40px  ) / 3)';
      margin-right: 20px;
    }

    .CardInfo:nth-child(3n + 3) {
      margin-right: 0;
    }
  }
}

@media screen and (min-width: 1921px) {
  .cardList {
    .CardInfo {
      width: ~'calc((100% - 60px  ) / 4)';
      margin-right: 20px;
    }

    .CardInfo:nth-child(4n + 4) {
      margin-right: 0;
    }
  }
}
